-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement: Make results tiltle editable and URL persistent #774
base: main
Are you sure you want to change the base?
enhancement: Make results tiltle editable and URL persistent #774
Conversation
✅ Deploy Preview for mozilla-perfcompare ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Make the pr description better like adding pictures and explaining your implementaion. Also you should look into the CI tests which are failing, read this section of the project readme which will help you with it. |
Hi, could you add the screenshots to the description for more clarification? Also run the tests and validations locally to see which ones are failing and work on the issues as you will see on your terminal. Maybe its due to jest snapshot which you will have to update |
Oops forgot to update the description from when it was on draft mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks pretty good as a first draft!
I left a comment about the mechanism to change the search params.
Otherwise I think that it should be make editable after a click on a button.
So here is how it could look like:
- at load time, we still have the "Results" by default (or the value in the URL if present) => the good thing is that most of the tests would still work.
- add a little edit icon (with MUI's Edit icon) next to this text. => i'd put it on the right of the text, this would look like : Results [Edit icon] | Compare with a base
- when the user clicks the edit icon, then the text changes into an input like you did.
It would be good to extract this functionality into a separate react component.
Finally it would be good to add a test to test this functionality.
Thanks again!
Thanks for the review. Working on it 🙂. |
Hi, I'd appreciate a look there, thank you 🙏🏽 |
Make sure your internet connection isn't slow and you release some memory of your system if needed. And run the tests using npm test -- --testTimeout 60000 if they're still timing out. |
Could be slow internet, I did increase timeout and same result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I left a lot of comments but I'd like to highlight that this is very good work still. This is difficult to get right! Hopefully we can get this patch to a mergeable state :-)
Thank you Julien 😊. I think you can take another look now. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #774 +/- ##
==========================================
+ Coverage 91.46% 91.62% +0.15%
==========================================
Files 88 89 +1
Lines 2332 2376 +44
Branches 434 445 +11
==========================================
+ Hits 2133 2177 +44
Misses 176 176
Partials 23 23 ☔ View full report in Codecov by Sentry. |
@FatumaA Hi I'd like to let you know you've been selected to go on the next round! Congrats! |
Thank you Carla! 🙏🏽 |
This PR makes the Results page title editable and persists in the URL state.
Before, the Results view had "Results" as the title. This title could not be customized and was not part of the URL parameters.
Now:
Before the changes:
Closes #769